<%--
  Created by IntelliJ IDEA.
  User: Acer
  Date: 2020/12/7
  Time: 22:28
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <html:base />
  <title>file upload</title>
</head>
<body>

<html:form action="/upload" method="post" focus="filename" enctype="multipart/form-data">
<table>
  ${msg}
  <tr>
    <td>username:</td>
    <td><html:text property="filename" /></td>
    <td><html:errors property="filename" /> </td>
  </tr>
  <tr>
    <td>password:</td>
    <td><html:file property="photo" /></td>
    <td><html:errors property="password" /> </td>
  </tr>
  <tr>
    <td colspan="2" align="center"><html:submit value="upload"></html:submit></td>
    <td colspan="2" align="center"><html:reset value="reset"></html:reset></td>
  </tr>
</table>
</html:form>


</body>
</html>
